//
//  MapDetailViewController.m
//  ITASTRA
//
//  Created by me on 8/18/12.
//  Copyright (c) 2012 me. All rights reserved.
//

#import "MapDetailViewController.h"

@interface MapDetailViewController ()

@end

@implementation MapDetailViewController
@synthesize nameMapDetail;
@synthesize descriptionMapDetail;
@synthesize info1MapDetail;
@synthesize imageMapDetail;

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
	[self updateUI];
}

-(void)updateUI {
    self.nameMapDetail.text = [NSString stringWithFormat:@"%@, %@, %@", self.annotation.nomeAnnotation, self.annotation.descriptionAnnotation, self.annotation.info1Annotation];
    
}


- (void)viewDidUnload
{
    [self setNameMapDetail:nil];
    [self setDescriptionMapDetail:nil];
    [self setInfo1MapDetail:nil];
    [self setImageMapDetail:nil];
    [super viewDidUnload];
    // Release any retained subviews of the main view.
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

@end
